package top.withu.gaof.freehope.dao;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import top.withu.gaof.freehope.model.Comment;

import java.util.List;

/**
 * @Description: 评论dao
 * @Author: gaofan
 * @Date: 2019/10/9 13:53
 * @Copyright: 2019 www.freehope.top Inc. All rights reserved.
 **/
@Repository
public interface CommentDao extends JpaRepository<Comment, String> {

    public List<Comment> findByDocIdAndIsEnabled(Integer docId, boolean isEnabled, Sort sort);
}
